package com.demo;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class Demo {
	public static void main(String[] args) {
	String oracle_url="jdbc:oracle:thin:@localhost:1521:orcl";
	String oracle_name="scott";
	String oracle_pwd="tiger";
	
	Map m=new HashMap();
	m.put("oracle_url", oracle_url);
	m.put("oracle_name", oracle_name);
	m.put("oracle_pwd", oracle_pwd);
	
	Set key=m.keySet();
	
	Iterator it=key.iterator();
	while(it.hasNext()) {
		String str1=(String)it.next();
		System.out.println(str1+"     "+m.get(str1));
		
		
	}
}
}
